import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

import Home from '@/views/Home.vue'
import Store from '@/views/vuex.vue'

const routes: Array<RouteRecordRaw> = [
	{
		path: '/',
		name: 'Home',
		component: Home
	},
	{
		path: '/vuex',
		name: 'Store',
		component: Store
	},
	{
		path: '/axios',
		name: 'Axios',
		component: () => import('@/views/axios.vue')
	}
]

const router = createRouter({
	history: createWebHistory(),
	routes
})

export default router
